package com.qf.mapper;

import com.qf.pojo.Room;

import java.util.List;

/**
 * @author zdl
 * @date 2025/2/14
 */
public interface RoomMapper {
    /**
     * 查询全部room对应的building
     * @return
     */
    List<Room> selectAllRoom();

    /**
     * 添加房间
     * @param room
     * @return
     */
    int insertRoom(Room room);

    /**
     * 批量删除room
     * @param ids
     * @return
     */
    int delRoomBatch(List<Integer> ids);

    /**
     * 修改
     * @param room
     * @return
     */
    int updateRoom(Room room);

    /**
     * 查询全部用途是居住的房间
     * @return
     */
    List<Room> allUseRoom();

}
